import { SessionStorage } from 'quasar'
export default {
  namespaced: true,
  state: {
    token: '',
    userName: ''
  },
  getters: {

  },
  mutations: {
    loginIn (state, payload) {
      state.token = payload.tokenType + payload.accessToken
      SessionStorage.set('token', state.token)
    },
    userName (state, names) {
      state.userName = '你好,' + names
    }
  },
  actions: {

  }
}
